﻿@model EdexApiClient.InvoiceLines

<div class="modal hide" data-name="INVOICE_LINES">

    <div class="modal-header">
        <h3>Просмотр позиции</h3>
    </div>

    <div class="modal-body">

        <form name="INVOICE_LINES" class="form-horizontal" method="post"> 
            <fieldset> 

                <div class="control-group"> 
                    <label class="control-label" for="ITEM_NAME">Товар</label>
                    <div class="controls">
                        <div class="input-append">
                            <input type="text" class="input-xlarge" name="ITEM_NAME" value="@(Model.ITEM != null ? Model.ITEM.ITEM_NAME : String.Empty)" readonly="readonly">
                            <a href="#" class="btn" data-index="@Model.GUID_RECORD" data-action="EDIT-ITEM-MAPPING"><i class="icon-edit"></i></a>
                        </div>
                    </div> 
                </div> 

                <div class="control-group"> 
                    <label class="control-label" for="QUANTITY">Количество</label>
                    <div class="controls">
                        <input type="text" class="input-xlarge" name="QUANTITY" readonly="readonly" value="@Model.QUANTITY">
                    </div> 
                </div> 

                <div class="control-group"> 
                    <label class="control-label" for="PRICE">Цена</label>
                    <div class="controls">
                        <input type="text" class="input-xlarge" name="PRICE" readonly="readonly" value="@Model.PRICE">
                    </div> 
                </div> 

                <div class="control-group"> 
                    <label class="control-label" for="TOTAL">Сумма</label>
                    <div class="controls">
                        <input type="text" class="input-xlarge" name="TOTAL" readonly="readonly" value="@Model.TOTAL">
                    </div> 
                </div> 
                
                <div class="control-group"> 
                    <label class="control-label" for="TAXTOTAL">Налог</label>
                    <div class="controls">
                        <input type="text" class="input-xlarge" name="TAXTOTAL" readonly="readonly" value="@Model.TAX_TOTAL">
                    </div> 
                </div> 

            </fieldset>
        </form>
        
    </div>

    <div class="modal-footer">
        <a href="#" class="btn" data-dismiss="modal" data-action='INVOICE_LINES-CLOSE'>Закрыть</a>
    </div>
</div>